package exercise;

public class PrintArr {
	public static void main(String[] args) {
		int[][]a={{1,2,3},{4,5,6},{7,8,9}};
		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < a[i].length-1-i; j++) {
				System.out.print("  ");
			}
			for(int j=a[i].length-1-i;j<a[i].length;j++){
				System.out.print(a[i][j]+" ");
			}
			System.out.println();
		}
	}

}
